package com.zf.yichat.api.dto.request;

import com.zf.yichat.utils.YiChatMsgCode;

import org.hibernate.validator.internal.util.Contracts;

/**
 * @author idea
 * @date Created in 2020/11/9 15:46
 * @description
 */
public class FanliCheckRequest extends FsRequest {
    private Integer status;
    private Long applyId;
    private String refuseReason;

    public Long getApplyId() {
        return applyId;
    }

    public void setApplyId(Long applyId) {
        this.applyId = applyId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }


    public String getRefuseReason() {
        return refuseReason;
    }

    public void setRefuseReason(String refuseReason) {
        this.refuseReason = refuseReason;
    }

    @Override
    public void valid() {
        Contracts.assertNotNull(status, YiChatMsgCode.SYSTEM_PARAM_ERROR.msg());
        Contracts.assertNotNull(applyId, YiChatMsgCode.SYSTEM_PARAM_ERROR.msg());
    }
}
